﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace SchoolManagementSystem.Report._4._Kho
{
    public partial class Stock_VoucherInFromPrint : DevExpress.XtraReports.UI.XtraReport
    {
        public Stock_VoucherInFromPrint()
        {
            InitializeComponent();
        }
        public string VoucherNo;
        public DateTime VoucherDate;
        public string EmployeeName;
        public string InputMethod;
        public string PaymentMethod;
        public string ProviderName;
        public decimal TotalAmount;

        private void ReportHeader_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            xrLabel_VoucherNo.Text = VoucherNo;
            xrLabel_VoucherDate.Text = VoucherDate.ToShortDateString();
            xrLabel_Provider.Text = ProviderName;
            xrLabel_Employee.Text = EmployeeName;
            xrLabel_InputMethod.Text = InputMethod;
            xrLabel_PaymentMethod.Text = PaymentMethod;
            xrLabel_VAT.Text=(TotalAmount * 10 / 100).ToString("c0");
            xrLabel_Total.Text = (TotalAmount + (TotalAmount * 10 / 100)).ToString("c0");
        }
    }
}
